﻿using System.Data.Linq;

namespace SubsidiosBussinessLogic.DataAccess.Interfaces
{
    public interface IDataContextFactory
    {
        /// <summary>
        /// Gets the actual context of the database
        /// </summary>
        DataContext Context { get; }

        /// <summary>
        /// Commits all modifications to the database
        /// </summary>
        void SaveAll();

    }
}